namespace Com.SharpZebra.ExampleWinformApplication.Labels
{
    public class BorderedLabel : IZebraCommand
    {
        private readonly string commandString;

        public BorderedLabel(string line1, string line2, string barcode)
        {
            commandString = new LabelBuilder()
                .Border(5, 5, 400, 400)
                .Barcode(barcode).At(15, 50)
                .Text(line1).At(15, 150)
                .Text(line2).At(15, 250)
                .Image("printer.pcx").At(150, 150).ToZebraInstruction();
        }

        public string ToZebraInstruction()
        {
            return commandString;
        }
    }
}
